<div class="silk-cms-field">
    <dl>
	<dt><label i18n:translate="string:Username"></label></dt>
	<dd><input type="text" name="user[username]" tal:attributes="value user/username|default"/></dd>
    </dl>
</div>

<tal:block tal:condition="not:user/user_id">
    <div class="silk-cms-field">
	<dl>
	    <dt><label i18n:translate="string:Password"></label></dt>
	    <dd><input type="password" name="user[password]"/></dd>
	</dl>
    </div>
    <div class="silk-cms-field">
	<dl>
	    <dt><label i18n:translate="string:Confirm Password"></label></dt>
	    <dd><input type="password" name="user[confirm_password]"/></dd>
	</dl>
    </div>
</tal:block>

<div class="silk-cms-field">
    <dl>
	<dt><label i18n:translate="string:Email Address"></label></dt>
	<dd><input type="text" name="user[email]" tal:attributes="value user/email|default"/></dd>
    </dl>
</div>

<div class="silk-cms-field">
    <dl>
	<dt><label i18n:translate="string:First Name"></label></dt>
	<dd><input type="text" name="user[first_name]" tal:attributes="value user/first_name|default"/></dd>
    </dl>
</div>

<div class="silk-cms-field">
    <dl>
	<dt><label i18n:translate="string:Last Name"></label></dt>
	<dd><input type="text" name="user[last_name]" tal:attributes="value user/last_name|default"/></dd>
    </dl>
</div>

<div class="silk-cms-field">
    <dl>
	<dt><label i18n:translate="string:Role"></label></dt>
	<dd>
	    <select name="user[role_id]">
		<option/>
		<option tal:repeat="role this/roles" tal:attributes="value role/role_id;selected php:this.selected(role.role_id, user.role_id)" tal:content="role/name"/>
	    </select>
	</dd>
    </dl>
</div>

<div class="silk-cms-field">
    <dl>
	<dt><label i18n:translate="string:Status"></label></dt>
	<dd>
	    <select name="user[status]">
		<option/>
		<option tal:repeat="status this/userStatuses" tal:attributes="value status;selected php:this.selected(status, user.status)" tal:content="status"/>
	    </select>
	</dd>
    </dl>
</div>